/*
** client.h for  in /home/tessa_b//proj/zappy-2011/client_graphique/client
** 
** Made by arnaud1 tessa
** Login   <tessa_b@epitech.net>
** 
** Started on  Thu Jun 16 16:03:49 2011 arnaud1 tessa
** Last update Thu Jun 16 20:01:15 2011 el-hadji-malick-ndour dieng
*/

#ifndef		__CLIENT_H__
#define		__CLIENT_H__

#define		BUF_SIZE	1024

#define		TRUE		1
#define		FALSE		0

typedef struct	s_client
{
  int		fd;
  char		sendBuf[BUF_SIZE];
  char		readBuf[BUF_SIZE];
}		t_client;

typedef struct 
{
  char		*team;
  char		*port;
  char		*host;
}		t_client_params;

void  print_arg_error(char *str);
void check_params(int argc, char **argv);
int  connectToServer(t_client *this, char *host, int port);
void Get_args(int argc, char **argv, t_client_params * client);
void Init_struct(t_client_params *client);
#endif		/*__CLIENT_H__*/
